home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / PAGE-EXT.ELC < prev    next >
Text File  |  1993-03-28  |  10KB  |  122 lines

  1. ;;; compiled by jwz@thalidomide on Thu Jul  2 16:38:34 1992
  2. ;;; from file /u/jwz/emacs19/lisp/packages/page-ext.el
  3. ;;; emacs version 19.2.1 Lucid.
  4. ;;; bytecomp version 2.07; 17-jun-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (global-unset-key "")
  14. (defvar ctl-x-ctl-p-map (make-sparse-keymap) "\
  15. Keymap for subcommands of C-x C-p, which are for page handling.")
  16. (byte-code "└    ┬├#ê├ Mê└ ┼╞#ê└ ┬╟#ê└ ╚╔#ê└ ╩╦#ê└ ╠═#ê└ ╬╧#ê└ ╨╤#ê└ ╥╙#ê└ ╘╒#ç" [define-key ctl-x-map "" ctl-x-ctl-p-prefix ctl-x-ctl-p-map "" next-page previous-page "" add-new-page "" mark-page "" search-pages "s" sort-pages-buffer " " set-page-delimiter "" pages-directory "d" pages-directory-for-addresses] 4)
  17. (fset 'next-page #[(&optional count) "¼é┴~ê┬V½ôm¼É├ ┼╞#¼âdbêSë¬i┬W½Öo¼û╟ ┼╞#½å┬öbê¬âebêTë¬c╚ êebê╔┬!ç" [count 1 0 re-search-forward page-delimiter nil t re-search-backward narrow-to-page recenter] 5 "\
  18. Move to the next page bounded by the page-delimiter variable.
  19. With arg (prefix if interactive), move that many pages." "p"])
  20. (fset 'previous-page #[(&optional count) "¼é┴┬[!ç" [count 1 next-page] 2 "\
  21. Move to the previous page bounded by the page-delimiter variable.
  22. With arg (prefix if interactive), move that many pages." "p"])
  23. (fset 'add-new-page #[(header-line) "~ê└┴\n\"cê├yç" [format "\n \n%s\n\n" header-line -1] 3 "\
  24. Insert new page at point; prompt for header line.
  25. Page begins with a `^L' as the page-delimiter.  
  26. Point is left in the body of page." "sHeader line: "])
  27. (defvar pages-last-search nil "\
  28. Value of last regexp searched for.  Initially, nil.")
  29. (fset 'search-pages #[(regexp) "┴ܽä\n¬é~ê├!ê─ ç" [regexp "" pages-last-search re-search-forward narrow-to-page] 2 "\
  30. Search for REGEXP, starting from point, and narrow to page it is in." (byte-code "└┴┬ «ü─\"!Cç" [read-string format "Search for `%s' (end with RET): " pages-last-search "regexp"] 4)])
  31. (autoload 'sort-subr "sort" "\
  32. Primary function for sorting." t nil)
  33. (fset 'sort-pages-in-region #[(reverse beg end) "î    }êebê┬ ─┼#)ç" [beg end sort-subr reverse #[nil "└    ┬├#ê─┬wç" [re-search-forward page-delimiter nil t "     \n"] 4] #[nil "└    ┬├#½ä─öbçdbç" [re-search-forward page-delimiter nil t 0] 4]] 4 "\
  34. Sort pages in region alphabetically.  Prefix arg means reverse order.  
  35.  
  36. Called from a program, there are three arguments:
  37. REVERSE (non-nil means reverse order), BEG and END (region to sort)." "P\nr"])
  38. (fset 'sort-pages-buffer #[(&optional reverse) "¼é┴~êed─ \n#*ç" [reverse nil end beginning sort-pages-in-region] 4 "\
  39. Sort pages alphabetically in buffer.  Prefix arg means reverse order. 
  40. (Non-nil arg if not interactive.)" "P"])
  41. (defvar pages-directory-buffer-narrowing-p nil "\
  42. *If non-nil, `pages-directory-goto' narrows pages buffer to entry.")
  43. (defvar pages-directory-previous-regexp nil "\
  44. Value of previous regexp used by `pages-directory'.
  45. (This regular expression may be used to select only those pages that
  46. contain matches to the regexp.)")
  47. (defvar pages-buffer nil "\
  48. The buffer for which the pages-directory function creates the directory.")
  49. (defvar pages-directory-prefix "*Directory for:" "\
  50. Prefix of name of temporary buffer for pages-directory.")
  51. (defvar pages-pos-list nil "\
  52. List containing the positions of the pages in the pages-buffer.")
  53. (defvar pages-directory-map nil "\
  54. Keymap for the pages-directory-buffer.")
  55. (byte-code "¼ë┴ ┬├─#ê┴ç" [pages-directory-map make-sparse-keymap define-key "" pages-directory-goto] 4)
  56. (fset 'set-page-delimiter #[(regexp reset-p) "└┴!ê└┬!ê    «ü\n ¼ä ¬é    t¡ä┼╞\n\"ç" [make-local-variable original-page-delimiter page-delimiter reset-p regexp message "The value of `page-delimiter' is now: %s"] 3 "\
  57. Set buffer local value of page-delimiter to REGEXP.
  58. Called interactively with a prefix argument, reset page-delimiter to
  59. its original value.
  60.  
  61. In a program, non-nil second arg causes first arg to be ignored and
  62. resets the page-delimiter to the original value." (byte-code "½ä    ┬Dç├─\"┬Dç" [current-prefix-arg original-page-delimiter nil read-string "Set page-delimiter to regexp: " page-delimiter] 3)])
  63. (fset 'pages-directory #[(pages-list-all-headers-p count-lines-p &optional regexp) "┴ܽä\n¬ét½å├─┼ \"êp╟┼ ╟R╚`╔\n  Éèqê╨ ê╤╥▒ê╘)½┤èebêîè╫╘┘#)½è╔ö╚U½ä╔òbê┌ ê█!ê)╫╘┘#½ç█!ê¬q)¬╡èebêî┌ êè╫╘┘#)½à█!ê)╫╘┘#½òî┌ êè╫╘┘#)½à█!ê)¬c)qêƒt¡è├▌G┼!#æê▐!ê▀╔!ê\n╔U½â╚¬é\ny-ç" [regexp "" pages-directory-previous-regexp message "Creating directory for: %s " buffer-name pages-directory-prefix " " 1 0 pages-buffer-original-page pages-buffer-original-position linenum pages-directory-buffer buffer standard-output pages-directory-mode "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" 10 pages-buffer nil pages-pos-list pages-list-all-headers-p re-search-forward page-delimiter t narrow-to-page pages-copy-header-and-position count-lines-p "%d matching lines in: %s" pop-to-buffer sit-for] 6 "\
  64. Display a directory of the page headers in a temporary buffer.
  65. A header is the first non-blank line after the page-delimiter.
  66.  
  67. You may move point to one of the lines in the temporary buffer,
  68. then use C-c C-c to go to the same line in the pages buffer.
  69.  
  70. In interactive use:
  71.  
  72.     1. With no prefix arg, display all headers.
  73.  
  74.     2. With prefix arg, display the headers of only those pages that
  75.        contain matches to a regular expression for which you are
  76.        prompted.
  77.  
  78.     3. With numeric prefix arg, for every page, print the number of
  79.        lines within each page.
  80.  
  81.     4. With negative numeric prefix arg, for only those pages that
  82.        match a regular expression, print the number of lines within
  83.        each page.
  84.  
  85. When called from a program, non-nil first arg means list all headers;
  86. non-nil second arg means print numbers of lines in each page; if first
  87. arg is nil, optional third arg is regular expression.
  88.  
  89. If the buffer is narrowed, the pages-directory command creates a
  90. directory for only the accessible portion of the buffer." (byte-code "¼à┴┬ëEç<½Ä┬ë├─┼«ü╟\"!Eç╚!╔V½à┴ë┬Eç╚!╔W¡ì┬┴├─┼«ü╟\"!Eç" [current-prefix-arg t nil read-string format "Select according to `%s' (end with RET): " pages-directory-previous-regexp "regexp" prefix-numeric-value 0] 6)])
  91. (fset 'pages-copy-header-and-position #[(count-lines-p) "└ë ½ïèî─ ê┼ed\"*`X½àTè╚└wê╔ ë`└ôê`è└ê`)\n  qê\nB╬ \n#ê* ½ïè╨yê╤╥    \"cê)╙ ê)╘y*ç" [nil line-count position count-lines-p narrow-to-page count-lines pages-buffer-original-position pages-buffer-original-page "     \n" make-marker end start standard-output pages-pos-list insert-buffer-substring buffer 0 format "%3d: " terpri 1] 5 "\
  92. Copy page header and its position to the Pages Directory.
  93. Only arg non-nil, count lines in page and insert before header.
  94. Used by `pages-directory' function."])
  95. (fset 'pages-directory-mode #[nil "└ ê┴\n!ê├┼╟╚!ê╟╔!ê╟╩!ç" [kill-all-local-variables use-local-map pages-directory-map pages-directory-mode major-mode "Pages-Directory" mode-name make-local-variable pages-buffer pages-pos-list pages-directory-buffer-narrowing-p] 2 "\
  96. Mode for handling the pages-directory-buffer.
  97.  
  98. Move point to one of the lines in this buffer,
  99. then use \\[pages-directory-goto] to go
  100. to the same line in the pages buffer."])
  101. (fset 'pages-directory-goto #[nil "½à┴!¼ê┬┬─┼!ê╞yê╟e`\"Së 8    m\n  ═!ê~ê\n½àdbê¬å╬    !bê ¡é╧ ,ç" [pages-buffer buffer-name nil pages-pos-list error "Buffer in which pages were found is deleted." 0 count-lines pages-number pos end-of-directory-p pages-directory-buffer-narrowing-p narrowing-p pop-to-buffer marker-position narrow-to-page] 4 "\
  102. Go to the corresponding line in the pages buffer." nil])
  103. (defvar pages-addresses-file-name "~/addresses" "\
  104. *Standard name for file of addresses. Entries separated by page-delimiter.
  105. Used by `pages-directory-for-addresses' function.")
  106. (defvar pages-directory-for-addresses-narrowing-p t "\
  107. *If non-nil, `pages-directory-goto' narrows addresses buffer to entry.")
  108. (fset 'pages-directory-for-addresses #[(&optional filename) "t½ê└┴\n«ü \"ê─\n«ü !½▒┼╞\n«ü !!qê~ê╟╚╔ë#ê╩ ê  ═ êèebê`è╔ê`)|ê╬cê╧╔!)ç╨╤!ç" [message "Creating directory for: %s " filename pages-addresses-file-name file-exists-p find-file-noselect expand-file-name pages-directory t nil pages-directory-address-mode pages-directory-for-addresses-narrowing-p pages-directory-buffer-narrowing-p delete-other-windows "=== Address List Directory: use `C-c C-c' to go to page under cursor. ===" set-buffer-modified-p error "No addresses file found!"] 4 "\
  109. Find addresses file and display its directory.
  110. By default, create and display directory of   pages-addresses-file-name.
  111. Optional argument is FILENAME.  In interactive use, with prefix
  112. argument, prompt for filename and provide completion.
  113.  
  114. Move point to one of the lines in the displayed directory,
  115. then use C-c C-c to go to the same line in the addresses buffer." (byte-code "¡ä┴┬ \"Cç" [current-prefix-arg read-file-name "Filename: " pages-addresses-file-name] 3)])
  116. (fset 'pages-directory-address-mode #[nil "└    !ê┬─╞╟!ê╞╚!ê╞╔!ç" [use-local-map pages-directory-map pages-directory-address-mode major-mode "Addresses Directory" mode-name make-local-variable pages-buffer pages-pos-list pages-directory-buffer-narrowing-p] 2 "\
  117. Mode for handling the Addresses Directory buffer.
  118.  
  119. Move point to one of the lines in this buffer,
  120. then use \\[pages-directory-goto] to go
  121. to the same line in the pages buffer."])
  122.